/* jshint indent: 1 */

module.exports = function(sequelize, DataTypes) {
	return sequelize.define('t_comic_topic', {
		id: {
			type: DataTypes.INTEGER(11),
			allowNull: false,
			autoIncrement: true,
			unique: true
		},
		code: {
			type: DataTypes.STRING(63),
			allowNull: false,
			primaryKey: true
		},
		name: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		url: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		avatar: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		author: {
			type: DataTypes.STRING(255),
			allowNull: true
		},
		update_at: {
			type: DataTypes.DATEONLY,
			allowNull: true
		}
	}, {
		tableName: 't_comic_topic',
		timestamps: false
	});
};
